package eu.best.sercheng.model.entity;

import java.util.LinkedList;
import java.util.List;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.OneToMany;


@Entity
public class DomainRules {

	@Id
	private String domainName;

	@OneToMany(cascade = CascadeType.ALL)
	private List<Rule> allow = new LinkedList<Rule>();
	
	@OneToMany(cascade = CascadeType.ALL)
	private List<Rule> disallow = new LinkedList<Rule>();

	public String getDomainName() {
		return domainName;
	}

	public void setDomainName(String domainName) {
		this.domainName = domainName;
	}

	public List<Rule> getAllow() {
		return allow;
	}

	public void setAllow(List<Rule> allow) {
		this.allow = allow;
	}

	public List<Rule> getDisallow() {
		return disallow;
	}

	public void setDisallow(List<Rule> disallow) {
		this.disallow = disallow;
	}

}
